package com.wf.atm.pojo;

import com.wf.atm.exception.ATMException;
import com.wf.atm.exception.BalanceNotEnoughException;

/**
 * @author mpk
 * @since 2024/6/4 14:47:13
 */
public interface Loanable {

/*    a)	贷款(requestLoan)
    参数：double  money贷款金额
    返回类型：Account
    b)	还贷(payLoan)
    参数：double  money还贷款金额
    返回类型：Account
    提醒：一定要理解抽象接口的原理和真实含义。*/


    Account requestLoan(double money) throws BalanceNotEnoughException, ATMException;

    Account payLoan(double money) throws ATMException;

}
